package com.medi.chats.dao;

import com.medi.chats.model.McActivities;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface McActivitiesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(McActivities record);

    int insertSelective(McActivities record);

    McActivities selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(McActivities record);

    int updateByPrimaryKey(McActivities record);


    /******************************************************************************************************************/
    /******************************************************************************************************************/
    /***************************************************下面是扩展方法*************************************************/
    /******************************************************************************************************************/
    /******************************************************************************************************************/

    /**
     * @Description  获取前15条数据 首页使用
     * @Author        Administrator
     * @Date          2018/11/1 17:19
     */
    List<McActivities> selectActivitiesSortOrder();


}